export function successReturn(data:any = null, msg:string = '请求成功', code:number = 200) {
    return {
        success : true,
        data,
        msg,
        code
    }
}

export function errorReturn(msg:string = '请求失败', code:number = 400, data:any = null) {
    return {
        success : false,
        data,
        msg,
        code
    }
}